<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>${session.front_login_user.login_name!}的收藏 - ${site.name!}</title>
<link rel="shortcut icon" href="${ctx}/favicon.ico" />
<link rel="icon" href="${ctx}favicon.ico"/>
<!-- 禁止浏览器初始缩放 -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<!-- 引入主题样式表 -->
<link type="text/css" rel="stylesheet" href="${ctx}/template/themes/${site.theme!}/css/style.css" />
<!-- 引入主题响应式样式表-->
<link type="text/css" rel="stylesheet" href="${ctx}/template/themes/${site.theme!}/css/responsive.css" />
<!-- 引入自定义样式表 -->
<link type="text/css" rel="stylesheet" href="${ctx}/template/themes/${site.theme!}/css/custom.css" />
<!-- 引入字体样式表-->
<link rel="stylesheet" type="text/css" href="${ctx}/template/themes/${site.theme!}/css/fonts/font-awesome/font-awesome.css"  media="all" />
<!-- 引入用户自定义代码 -->
<script type='text/javascript' src='${ctx}/template/themes/${site.theme!}/js/jquery.min.js'></script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]>
<script src="${ctx}/template/themes/${site.theme!}/js/html5.js"></script>
<script src="${ctx}/template/themes/${site.theme!}/js/css3-mediaqueries.js"></script>
<script src="${ctx}/template/themes/${site.theme!}/js/PIE_IE678.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/template/themes/${site.theme!}/css/iefix.css"  media="all" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="${ctx}/template/themes/${site.theme!}/css/fonts/font-awesome/font-awesome-ie7.min.css" media="all" />
<![endif]-->
<!--[if IE 6]>
<script src="${ctx}/template/themes/${site.theme!}/js/kill-IE6.js"></script>
<![endif]-->
</head>
<body id="wrap" class="archive">
<div id="body-container">
<?include("../header.html"){}?>
<section id="content-container">
<div class="breadcrumbs">
	<div class="container clr">
		<div id="breadcrumbs">
		<h1><i class="fa fa-user"></i> 用户中心</h1>
		<div class="breadcrumbs-text">浪迹天涯 的收藏</div>
		</div>
	</div>
</div>
<div id="main-wrap">
	<div class="container pagewrapper clr" id="author-page">
		<?include("userleft.html",{current:"myfav"}){}?>
		<div class="pagecontent">
		<!-- Content -->
		<div class="content">
			<div class="table-container col-xs-12 table_page">
					<table id="content-table"
						class="table table-striped table-bordered table-hover table_page">
						<thead>
							<tr>
								<th class="center" width="5%">
									<label class="position-relative">
										<input type="checkbox" class="ace table_check" value="${p.id!}"/>
										<span class="lbl"></span>
									</label>
								</th>
								<th class="center" width="25%">标题</th>
								<th class="center" width="10%">栏目</th>
								<th class="center" width="10%">作者</th>
								<th class="center" width="6%">状态</th>
								<th class="center" width="5%">阅读数</th>
								<th class="center" width="5%">评论数</th>
								<th class="center" width="5%">点赞数</th>
								<th class="center" width="15%">发布时间</th>
								<th class="center" width="5%">操作</th>
							</tr>
						</thead>
						<tbody>
							<?for(p in list!) {?>
							<tr>
								<td class="center">
									<label class="position-relative">
										<input type="checkbox" name="ids" class="ace table_check" value="${p.id!}" />
										<span class="lbl"></span>
									</label>
								</td>
								<td><a target="_blank" href="${url!}/html/show_${p.id}.html" title="${p.title!}">${str.subString(p.title!,0,30)}</a></td>
								<td class="center">${categoryMap['c'+p.category!0]}</td>
								<td class="center">${authorMap['a'+p.author!0]}</td>
								<td class="center">${stateMap[p.state!0]}</td>
								<td class="center">${p.read_num!0}</td>
								<td class="center">${p.reply_num!0}</td>
								<td class="center">${p.favorite_num!0}</td>
								<td class="center">${p.create_time!}</td>
								<td class="center">
									<div class="action-buttons">
									<a href="javascript:removeFav(${p.id!});" class="red del-content delete"> 
										<i class="ace-icon fa fa-trash-o bigger-130" title="删除"></i>
									</a>
									</div>
								</td>
							</tr>
							<?}?>
						</tbody>
					</table>
				</div>
		 </div>
		</div>
	</div>
</div>
</section>
</div>
<script type="text/javascript">
var ajax_sign_object = {"redirecturl":"${url}","ajaxurl":"${url}/ajax","loadingmessage":"\u6b63\u5728\u8bf7\u6c42\u4e2d\uff0c\u8bf7\u7a0d\u7b49..."};
var tin = {"ajax_url":"${url}/ajax","tin_url":"${url}/template/themes/${site.theme!}/","uid":${session.front_login_user.id!0}}
</script>
<script type='text/javascript' src='${ctx}/template/themes/${site.theme!}/js/function.js'></script>
<script type='text/javascript' src='${ctx}/template/themes/${site.theme!}/js/theme.js'></script>
<script type="text/javascript">
function removeFav(_id) {
	$.ajax({
		type: 'POST',
		xhrFields: {withCredentials: true},
		dataType: 'json',
		url: tin.ajax_url + "/removeFavorite",
		data: 'pid=' + _id,
		cache: false,
		success: function(r){
			if(r.result) {
				location.reload();
			} else {
				alert(r.message);
			}
		}
	});
}
</script>
</body>
</html>